package com.ereach;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class Main {
    public static void main(String[] args) {
        String dt = "2022-05-23";

        try {
            java.util.Date mydate = new SimpleDateFormat("yyyy-MM-dd").parse(dt);
            String xxx = new SimpleDateFormat("MM/dd/yyyy").format(mydate);
            System.out.println(xxx);
        } catch (ParseException e) {
            e.printStackTrace();
        }

    }
}
